package com.code.produce.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liyufei
 * @since 2018-12-07 6:32 PM
 */
@RestController
public class HelloController {

    @GetMapping(value = "/index")
    public String index(@RequestParam("name") String name,
                        @RequestParam("port") String port){
        return "index-name " + name + ", index-port: " + port;
    }
}
